//
//  RJPhoto.h
//  Muses
//
//  Created by hzyd-wlj on 14/11/17.
//  Copyright (c) 2014年 yodo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface RJPhoto : NSObject
/*
 * URL of the image, varied URL size should set according to display size.
 */
@property(nonatomic,strong) NSURL *URL;


@property(nonatomic,strong) NSString *title;
/*
 * The caption of the image.
 */
@property(nonatomic,strong) NSString *caption;

/*
 * Size of the image, CGRectZero if image is nil.
 */
@property(nonatomic) CGSize size;

/*
 * The image after being loaded, or local.
 */
@property(nonatomic,retain) UIImage *image;

/*
 * Returns true if the image failed to load.
 */
@property(nonatomic,assign,getter=didFail) BOOL failed;

@end
